package gttp.nspa.client;

import java.io.Serializable;

import com.google.gwt.user.client.rpc.IsSerializable;

public class Order implements Serializable, IsSerializable {

    private static final long serialVersionUID = -4497537663275018344L;

    private String            id;

    private long              time             = System.currentTimeMillis();

    private int               income;

    private Human             owner;

    private Product           product;

    private String            desc;

    public Order(Human owner, Product product) {
        income = product.getPrice();

        this.owner = owner;
        this.product = product;
    }

    public String getId() {
        return id;
    }

    public long getTime() {
        return time;
    }

    public int getIncome() {
        return income;
    }

    public void setIncome(int income) {
        this.income = income;
    }

    public Human getOwner() {
        return owner;
    }

    public Product getProduct() {
        return product;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

}
